# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=mobpass
pkgver=0.2
pkgrel=4
pkgdesc="A mobile interface for gopass"
url="https://git.sr.ht/~anjan/mobpass"
arch="noarch !armhf" # missing dependencies
options="!check" # No test suite
license="GPL-3.0-or-later"
depends="python3 py3-qt5 qt5-qtquickcontrols qt5-qtquickcontrols2 gopass py3-fuzzyfinder"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~anjan/mobpass/archive/v$pkgver.tar.gz"
builddir="$srcdir/"$pkgname-v$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	install -Dm644 mobpass.desktop "$pkgdir"/usr/share/applications/mobpass.desktop
}

sha512sums="4e302df637eece3da35014177b99d2e1b49247d573fd302b4defad6e80da1136761d00d48ab93f7f5ed06efc727d194ad1b253a7d09576010b8e6e9451355186  mobpass-0.2.tar.gz"
